package cc.rengu.redp.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ExcelIgnoreUnannotated
@TableName("T_LOG")
public class SysLog implements Serializable {

    private static final long serialVersionUID = -8878596941954995444L;

    @TableId(value = "ID")
    private Long id;

    @ExcelProperty(value = "操作人")
    private String username;

    @ExcelProperty(value = "操作描述")
    private String operation;

    @ExcelProperty(value = "耗时（毫秒）")
    private Long time;

    @ExcelProperty(value = "执行方法")
    private String method;

    @ExcelProperty(value = "方法参数")
    private String params;

    @ExcelProperty(value = "IP地址")
    private String ip;

    @ExcelProperty(value = "操作时间")
    private Date createTime;

    @TableField(exist = false)
    private String createTimeFrom;

    @TableField(exist = false)
    private String createTimeTo;

    @ExcelProperty(value = "操作地点")
    private String location;

}